import request from '@/utils/request'

/**
 * 订单成功调用支付
 * @query int orderId 订单号
 */
export const payOrderService = (orderId) => {
    return request({
        url: `/orders/${orderId}/payment`,
        method: 'post',
    })
}

/**
 *  我的订单列表
 *  @query int offset 页码
 *  @query int limit 每页条数
 */

export const getOrderListService = (offset, limit) => {
    return request({
        url: `/orders?offset=${offset}&limit=${limit}`,
        method: 'get',
    })
}